CC=gcc
CXX=g++
CXXFLAGS=-g -Wall -pedantic

all: solver generator
	
solver: main.o matrix.o gausssolver.o basicsolver.o gaussseidelsolver.o
	$(CXX) $(CXXFLAGS) -fopenmp main.o matrix.o gausssolver.o basicsolver.o gaussseidelsolver.o -o matrices
	
generator: matrix_generator.o
	$(CXX) $(CXXFLAGS) matrix_generator.o -o matrix_generator

gausssolver.o: gausssolver.cpp
	$(CXX) -c $(CXXFLAGS) -fopenmp gausssolver.cpp
